<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib uri="http://shiro.apache.org/tags"  prefix="shiro"%>
<c:set var="base" value="${pageContext.request.contextPath}" />

<header class="navbar-wrapper">
	<div class="navbar navbar-fixed-top">
		<div class="container-fluid cl"> 
			<a class="logo navbar-logo f-l mr-10 hidden-xs" href="javascript:;">H-ui.admin</a>
			<a class="logo navbar-logo-m f-l mr-10 visible-xs" href="javascript:;">H-ui</a>
			<span class="logo navbar-slogan f-l mr-10 hidden-xs">v2.4</span> 
			<a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
			<nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
				<ul class="cl">
					<c:if test="${sessionScope.session_admin.roleId == 1}">
						<li>管理员</li>
					</c:if>
					<c:if test="${sessionScope.session_admin.roleId != 1}">
						<li>普通用户</li>
					</c:if>
					<li class="dropDown dropDown_hover"> <a href="#" class="dropDown_A"><shiro:principal property="realname"></shiro:principal><i class="Hui-iconfont">&#xe6d5;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;"  onclick="edit_password('修改密码','${base}/admin/login/edit_password.do','','280')">修改密码</a></li>
							<li><a href="${base}/admin/login/logout.do">切换账户</a></li>
						</ul>
					</li>
<!-- 					<li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li> -->
					<li id="Hui-skin" class="dropDown right dropDown_hover"> <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
						<ul class="dropDown-menu menu radius box-shadow">
							<li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
							<li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
							<li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
							<li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
							<li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
							<li><a href="javascript:;" data-val="orange" title="绿色">橙色</a></li>
						</ul>
					</li>
				</ul>
			</nav>
		</div>
	</div>
	<script type="text/javascript">
		/*修改密码*/
		function edit_password(title,url,w,h){
			layer_show(title,url,w,h);
		}
	</script>
</header>